﻿#if NETSTANDARD2_0_OR_GREATER || NET5_0_OR_GREATER
using AutoCommunication.Web;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoCommunication.Helper
{
    /// <summary>
    /// 
    /// </summary>
    public static partial class MethodExt
    {
        /// <summary>
        /// 后台启动连接程序
        /// </summary>
        public static void AddAutoCommunicationService(this IServiceCollection Services)
        {
            Services.AddSingleton<IHostedService, AutoService>();
        }
    }
}
#endif